// import { createApp } from 'vue'
// // 重置浏览器样式
// import '@/assets/css/normalize.css'
// import '@/assets/css/reset.css'

// import ElementPlus from 'element-plus'
// import 'element-plus/dist/index.css'
// import zhCn from 'element-plus/es/locale/lang/zh-cn'
// import { createPinia } from 'pinia'
// const store=createPinia();

// import App from './App.vue'

// const app = createApp(App)

// app.use(ElementPlus, {
//     locale: zhCn,
//   })
//   app.use(store)
// app.mount('#app')

import { createApp } from 'vue'
import router from '@/router/index'
import App from './App.vue'
import { createPinia } from 'pinia'

// 重置浏览器样式
import '@/assets/css/normalize.css'
import '@/assets/css/reset.css'

const app = createApp(App)
const pinia = createPinia()

//设置如下部分可以让分页器直接变成现在的效果
import ElementPlus from "element-plus";
import locale from "element-plus/es/locale/lang/zh-cn";
import "element-plus/dist/index.css";
// 安装element-plus插件
app.use(ElementPlus, { locale });
app.use(pinia)
//全局导入图标
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}


app.use(router).mount('#app')